srcdir=         @srcdir@
top_srcdir=     @top_srcdir@
top_builddir=   @top_builddir@
VPATH=          @srcdir@

include ${top_builddir}/Mk/autoconf.mk
include ${top_builddir}/Mk/compile.mk
include ${top_builddir}/Mk/subdir.mk

# Build the Lemon tool
LEMON_OBJS=	lemon.o

MAKEHEADERS_OBJS=	makeheaders.o
CFLAGS=

all:: lemon makeheaders

lemon: $(LEMON_OBJS)
	$(CC) ${CFLAGS} -o $@ $(LEMON_OBJS) $(LIBS) $(LDFLAGS)

makeheaders: $(MAKEHEADERS_OBJS)
	$(CC) ${CFLAGS} -o $@ $(MAKEHEADERS_OBJS) $(LIBS) $(LDFLAGS)

clean::
	rm -f $(LEMON_OBJS) lemon
	rm -f $(MAKEHEADERS_OBJS) makeheaders

distclean:: clean
	rm -f Makefile
